import service from "@/utils/request";

const medicalApi = {
  getList(data){
    // 获取医检标本数据分页
    return service.get("institution/sample/list",{params:data})
  },
  getDetail(data){
    // 获取医检标本数据
    return service.get("institution/sample",{params:data})
  },
  addSpecimen: function(data) {
    // 新增医检标本
    return service.post("institution/sample", data);
  },
  editSpecimen: function(data) {
    // 编辑医检标本
    return service.put("institution/sample", data);
  },
  delSpecimen: function(data) {
    // 编辑医检标本
    return service.get("institution/sample/delete", {params:data});
  },
  getSpecimenAll(data){
    // 获取医检标本数据
    return service.get("institution/sample/listInsSample",{params:data})
  },
  importData: function(data) {
    // 导入
    return service.get("institution/sample/import", { params: data });
  },
};

export default medicalApi;
